package com.zzl.springboot.entity;

import java.io.Serializable;

public class UserInfo implements Serializable {
    private Integer id;

    private String name;

    private Integer userId;

    private String phone;

    private Byte sex;

    private String spec;

    private Integer volNum;

    private static final long serialVersionUID = 1L;

    public UserInfo(Integer id, String name, Integer userId, String phone, Byte sex, String spec, Integer volNum) {
        this.id = id;
        this.name = name;
        this.userId = userId;
        this.phone = phone;
        this.sex = sex;
        this.spec = spec;
        this.volNum = volNum;
    }

    public UserInfo() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec == null ? null : spec.trim();
    }

    public Integer getVolNum() {
        return volNum;
    }

    public void setVolNum(Integer volNum) {
        this.volNum = volNum;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", userId=").append(userId);
        sb.append(", phone=").append(phone);
        sb.append(", sex=").append(sex);
        sb.append(", spec=").append(spec);
        sb.append(", volNum=").append(volNum);
        sb.append("]");
        return sb.toString();
    }
}